package com.dao;

import com.entity.RbacManager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface RbacManagerDao {

    List<RbacManager> findAll();

    int addOne(RbacManager rbacManager);

    int deleteOne(int id);

    int updateOne(RbacManager rbacManager);

    RbacManager findOne(int id);

    RbacManager findUser(String username);

    RbacManager login(String username, String password);

    List<RbacManager> search(@Param("account") String account,@Param("status") String status);
}
